@use './var.scss';
@use './base.scss';
@use './format.scss';
@use './animation.scss';
@use './ant-override.scss';
@use './common.scss';

// 边框
$--border-radius-base: 8px;

#app {
  /* max-width: 1280px; */
  min-width: 100wh;
  min-height: 100vh;
  margin: 0 auto;
  /* padding: 2rem; */
  font-weight: normal;
}

// 全局公共布局宽度
.common-container{
  // width: 70%;
  // margin: 0 auto;
  // padding: 20px 0;
}

// 已在 base.scss 中定义全局 a 标签样式
.green {
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

// cursor 小手
.go-cursor-pointer {
  cursor: pointer;
}

// IE盒模型
.go-boderbox {
  box-sizing: border-box;
}

// 过度
.go-transition {
  transition: all 0.4s;
}

.go-transition-quick {
  transition: all 0.2s;
}
.go-flex {
  display: flex;
}
.go-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.go-flex-sc {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.go-flex-items-center {
  display: flex;
  align-items: center;
  text-align: center;
}

.go-flex-no-wrap {
  flex-wrap: nowrap !important;
}

.go-absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 边框圆角
.go-border-radius {
  border-radius: $--border-radius-base;
  overflow: hidden;
}

// 省略号
.go-ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.go-d-inline-block {
  display: inline-block;
}

.go-d-block {
  display: block;
}


@media (hover: hover) {
  // 移除 a:hover 样式，防止与全局样式冲突
  .green:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    /* display: flex; */
    /* place-items: center; */
  }

  #app {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem; */
  }
}
